import service from '@/utils/request';
const api = 'api';

// 社群审核列表
export function getAssociationList(data) {
  return service({
    url: `${api}/system/audit/community/pendingReviewList`,
    method: 'post',
    data,
  });
}

// 社群审核通过
export function AdoptAssociationList(data) {
  return service({
    url: `${api}/system/audit/community/approve`,
    method: 'post',
    data,
  });
}

// 社群审核拒绝
export function RefuseAssociationList(data) {
  return service({
    url: `${api}/system/audit/community/reject`,
    method: 'post',
    data,
  });
}

// 社群详情
export function getAssociationDetails(id) {
  return service({
    url: `${api}/system/audit/community/getDetailById?communityId=${id}`,
    method: 'get',
  });
}

